<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>欢迎来到梦之都</title>
    <link rel="stylesheet" type="text/css" href="dreamdu.css" >
</head>
<body>


    <h3 align="center">添加客户</h3>


   <form action="<c:url value='/CustomerServlet'/>" method="post">


       <input type="hidden" name="method" value="add"/>


        	<table border="0" align="center" width="40%" style="margin-left: 100px">


       		<tr>


    				<td width="100px">客户名称</td>


    				<td width="40%">


    					<input type="text" name="cname"/>


    				</td>


    				<td align="left">


    					<label id="cnameError" class="error">&nbsp;</label>


    				</td>


    			</tr>


    			<tr>


    				<td>客户性别</td>


    				<td>


    					<input type="radio" name="gender" value="男" id="male"/>


    					<label for="male">男</label>


    					<input type="radio" name="gender" value="女" id="female"/>


    					<label for="female">女</label>


    				</td>


    				<td>


    					<label id="genderError" class="error">&nbsp;</label>


    				</td>


    			</tr>


    			<tr>


    				<td>客户生日</td>


    				<td>


    					<input type="text" name="birthday" id="birthday" readonly="readonly"/>


    				</td>


    				<td>


    					<label id="birthdayError" class="error">&nbsp;</label>


    				</td>


    			</tr>


    			<tr>


    				<td>手机</td>


        			<td>


    					<input type="text" name="cellphone"/>


    				</td>


    				<td>


    					<label id="cellphoneError" class="error">&nbsp;</label>


    				</td>


    			</tr>


    			<tr>


    				<td>邮箱</td>


    				<td>


    					<input type="text" name="email"/>


    				</td>


    				<td>


    					<label id="emailError" class="error">&nbsp;</label>


    				</td>


    			</tr>


    			<tr>


    				<td>描述</td>


    				<td>


    					<textarea rows="5" cols="30" name="description"></textarea>


    				</td>


    				<td>


    					<label id="descriptionError" class="error">&nbsp;</label>


    				</td>


    			</tr>


    			<tr>


    				<td>&nbsp;</td>


    				<td>


    					<input type="button" value="添加客户" onclick="add()"/>


    					<input type="reset" value="重置"/>


    				</td>


    				<td>&nbsp;</td>


    			</tr>


        	</table>


        </form>

</body>
</html>